{% extends 'base.html' %}
{% block content %}
    {% load crispy_forms_filters %}
    <style>
        .table-admin_updata {
            position: fixed;
            max-width: 50%; /* 设置容器的最大宽度 */
            left: 25%;
            width: 50%;
            margin: 2% auto;
            padding: 15px; /* 添加一些内边距 */
            background-color: #ffffff; /* 设置背景颜色 */
            border: 1px solid rgba(221, 221, 221, 0.67); /* 添加边框 */
            border-radius: 5px; /* 添加圆角 */
        }</style>
    <div class="table-admin_updata">
            <form method="post" action="{% url 'device:admin_updata' admin_id %}">
                {% csrf_token %}
                {{ form|crispy }}
                <button class="btn btn- btn-primary" type="submit">更新数据</button>
                <a href="{% url 'device:home' %}" class="btn btn-primary">返回首页</a>
            </form>
    </div>
{% endblock %}